
<script>
$(function() {
	$( "#dormitorystuffs" ).accordion({
		autoHeight: false,
		collapsible: true,
		active: 0
	});
});
</script>

<script>
function OnSubmitForm2(){
	if(document.pressed == "Save Changes"){
		document.applianceform.action ="<?php echo base_url();?>index.php/applianceController/editAppliance/";
		return true;
	}else if(document.pressed == "Back"){
		document.applianceform.action ="<?php echo base_url();?>index.php/residentController/loadSearchResidentView/"+document.applianceform.student_number.value;
		return true;
	}
}
</script>
